FROM harbor.haoliangyou.net/library/nginx:latest
ENV APP_HOME=/usr/share/nginx/html
# 修改时区，使得容器时间为北京时间
RUN echo "Asia/Shanghai" > /etc/timezone
# 将所需项目文件复制进入容器中
COPY ./dist/ /usr/share/nginx/html/
# 运行项目
ENV PATH /usr/sbin:\\$PATH
CMD ["nginx", "-g", "daemon off;"]
EXPOSE 80
EXPOSE 443